package com.bishe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName(value ="comment")
public class Comment implements Serializable {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;


    @ApiModelProperty(value = "内容")
    private String context;

    /**
     *
     */
    @ApiModelProperty(value = "学生id")
    private String uid;

    /**
     *
     */
    @ApiModelProperty(value = "教师id")
    private String tid;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "cjsj")
    private Date cjsj;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
